//
//  BillDetailViewController.swift
//  LGMusic
//
//  Created by 梁尚嘉 on 2017/3/27.
//  Copyright © 2017年 LimeGah. All rights reserved.
//

import UIKit

import SwiftyJSON

class BillDetailViewController: BaseViewController {


    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        UIApplication.shared.setStatusBarStyle(UIStatusBarStyle.default, animated: false)
    }

    public var song:Song?{
        didSet {
            playView.loadSong(song!)
        }
    }

    let playView = LGInPlayView.init(frame: CGRect.zero)
    override func viewDidLoad() {
        super.viewDidLoad()
        self.fd_prefersNavigationBarHidden = true

        self.view.addSubview(playView)
        playView.snp.makeConstraints { (make) in
            make.edges.equalTo(0)
        }

    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
